<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>车辆列表</title>
		<link rel="stylesheet" type="text/css" href="../resource/css/base.css">
		<script type="text/javascript" src="../resource/js/My97DatePicker/WdatePicker.js"></script>
		<s:actionmessage/>
	</head>
	<body  oncontextmenu="return false;" leftmargin="8" topmargin="8">
		<div class="tip">
			<span>当前位置:</span>车辆管理&nbsp;&gt;&nbsp;
		</div>
		<!--  搜索列表  -->
		<s:form name="infoForm" action="load" namespace="/truck">
			<table width='98%' border='0' cellpadding='1' cellspacing='1'
				bgcolor='#CBD8AC' align="center" style="margin-top: 8px">
				<tr bgcolor='#EEF4EA'>
					<td align='center'>
						<table width="98%" height="26" border='0' cellpadding='0'
							cellspacing='0'>
							<tr>
						          <td width='20%' align="right"> 车牌号: </td>
						       	  <td width='30%'> 
						       	 	 <s:textfield  name="truckId"></s:textfield>
						          </td>
						          <td width='10%'> 购买日期: </td>
						       	  <td width='30%'>
						       	  	<s:textfield onclick="WdatePicker();" cssClass="Wdate" name="netryTime"></s:textfield>
						          </td>
						          <td>
									<input type="image" src="../resource/image/search.gif"
										height="20" border="0" class="np" onclick="javascript:document.forms[0].submit();" />
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<!--  内容列表   -->
			<table width="98%" border="0" cellpadding="2" cellspacing="1"
				bgcolor="#D1DDAA" align="center" style="margin-top: 8px">
				<tr bgcolor="#E7E7E7">
					<td height="24" colspan="12">
						&nbsp;车辆列表&nbsp;
					</td>
				</tr>
				<!-- 表头 -->
				<tr align="center" bgcolor="#FAFAF1" height="22">
					 <td width="4%">ID</td>
					 <td width="4%">选择</td>
					 <td width="8%">车牌号</td>
					 <td width="8%">车别名</td>
					 <td width="8%">品牌</td>
					 <td width="8%">型号</td>
					 <td width="8%">类型</td>
					 <td width="9%">最大载重(kg)</td>
					 <td width="10%">购买日期</td>
					 <td width="8%">购买金额</td>
					 <td width="6%">维修次数</td>
					 <td width="7%">操作</td>
				</tr>
				<s:iterator value="trucks" status="vo">
					<!-- 信息 -->
					<tr align='center' bgcolor="#FFFFFF"
						onMouseMove="javascript:this.bgColor='#FCFDEE';"
						onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
						<td>
							<s:property value="#vo.count" />
						</td>
						<td>
							<input name="id" type="checkbox" id="id"
								value="<s:property value="truckId"/>" class="np">
						</td>
						<td>
							<s:property value="truckId" />
						</td>
						<td>
							<s:property value="truckName" />
						</td>
						<td>
							<s:property value="truckBrand" />
						</td>
						<td>
							<s:property value="truckModel" />
						</td>
						<td>
							<s:property value="truckType" />
						</td>
						<td>
							<s:property value="maxLoad" />
						</td>
						<td>
							<s:date name="netryTime"  format="yyyy-MM-dd" />
						</td>
						<td>
							<s:property value="netryFee" />
						</td>
						<td>
							<s:property value="fixNum"/>
						</td>
						<td>
							<a href="updatePre.action?truckId=<s:property value="truckId"/>">编辑</a>
						</td>
					</tr>
				</s:iterator>

				<!-- 引用统一的操作、分页功能页面
					 其中的url参数a、q、d分别用来传入增、查、删功能的action -->
				<jsp:include page="/WEB-INF/pages/frame/page.jsp?a=addPre&q=load&d=delete&cols=12"/>
			</table>
		</s:form>
	</body>
</html>
